package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ExtractMonery generated by hbm2java
 */
@Entity
@Table(name = "extract_monery", catalog = "good_fresh")
public class ExtractMonery implements java.io.Serializable {

	private Integer extractMonryId;
	private BindCard bindCard;
	private UserInfo userInfo;
	private Date extractMonryTime;
	private Integer extractMonryType;
	private Long extractMonryLimit;
	private Integer extractMonryState;
	private Date createTime;
	private Date updateTime;
	private String holdOne;
	private String holdTwo;

	public ExtractMonery() {
	}

	public ExtractMonery(BindCard bindCard, UserInfo userInfo, Date extractMonryTime, Integer extractMonryType,
			Long extractMonryLimit, Integer extractMonryState, Date createTime, Date updateTime, String holdOne,
			String holdTwo) {
		this.bindCard = bindCard;
		this.userInfo = userInfo;
		this.extractMonryTime = extractMonryTime;
		this.extractMonryType = extractMonryType;
		this.extractMonryLimit = extractMonryLimit;
		this.extractMonryState = extractMonryState;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.holdOne = holdOne;
		this.holdTwo = holdTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "EXTRACT_MONRY_ID", unique = true, nullable = false)
	public Integer getExtractMonryId() {
		return this.extractMonryId;
	}

	public void setExtractMonryId(Integer extractMonryId) {
		this.extractMonryId = extractMonryId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "BIND_CARD_ID")
	public BindCard getBindCard() {
		return this.bindCard;
	}

	public void setBindCard(BindCard bindCard) {
		this.bindCard = bindCard;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_INFO_ID")
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EXTRACT_MONRY_TIME", length = 19)
	public Date getExtractMonryTime() {
		return this.extractMonryTime;
	}

	public void setExtractMonryTime(Date extractMonryTime) {
		this.extractMonryTime = extractMonryTime;
	}

	@Column(name = "EXTRACT_MONRY_TYPE")
	public Integer getExtractMonryType() {
		return this.extractMonryType;
	}

	public void setExtractMonryType(Integer extractMonryType) {
		this.extractMonryType = extractMonryType;
	}

	@Column(name = "EXTRACT_MONRY_LIMIT", precision = 10, scale = 0)
	public Long getExtractMonryLimit() {
		return this.extractMonryLimit;
	}

	public void setExtractMonryLimit(Long extractMonryLimit) {
		this.extractMonryLimit = extractMonryLimit;
	}

	@Column(name = "EXTRACT_MONRY_STATE")
	public Integer getExtractMonryState() {
		return this.extractMonryState;
	}

	public void setExtractMonryState(Integer extractMonryState) {
		this.extractMonryState = extractMonryState;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "HOLD_ONE")
	public String getHoldOne() {
		return this.holdOne;
	}

	public void setHoldOne(String holdOne) {
		this.holdOne = holdOne;
	}

	@Column(name = "HOLD_TWO")
	public String getHoldTwo() {
		return this.holdTwo;
	}

	public void setHoldTwo(String holdTwo) {
		this.holdTwo = holdTwo;
	}

}
